import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;

public class Demo {
	public static void main(String[] args) throws FileNotFoundException {
		File file = new File("go.sh");
		PrintWriter pw = new PrintWriter(file);

		int nodes = 12;
		int jumpSize = 1000990 / nodes;
		for (int begin = 0; begin < 1000990; begin += jumpSize) {
			int end = begin + jumpSize;
			if (end > 1000990) {
				end = 1000990;
			}

			pw.print("prun -np 1 java -Xmx22G ScheduleAll " + "AUM/val/3229 ");
			System.out.print("prun -np 1 java -Xmx22G ScheduleAll "
					+ "AUM/val/3229 ");

			pw.println(begin + " " + end);
			System.out.println(begin + " " + end);
		}

		pw.close();
	}
}
